﻿@inherits Vowei.Web.G18nWebViewPage
@using Vowei.Core.Models
@using Vowei.Web.Helpers

@{
    ViewBag.Title = T("确认从Excel里导入的任务");
}

<h2>@T("导入确认")</h2>

<form action="/Wizard/FinishImport" method="post">
    <table>
       <thead>
         <tr>
            <th>@T("类型")</th>
            <th>@T("名称")</th>
         </tr>
       </thead>
       <tbody>
        @foreach (INamedTable item in (Session["ImportedData"] as IEnumerable<ITable>))
        {
          <tr>
            <td>
              @if (item is Milestone)
              {
                  <span>@T("里程碑")</span>
              }
              else if (item is Requirement)
              {
                  <span>@T("需求")</span>
              }
              else
              {
                  <span>@T("任务")</span>
              }
            </td>
            <td>
              @item.Title
            </td>
          </tr>        
        }
       </tbody>
    </table>

    <input type="hidden" id="ID" name="ID" value="@ViewData["ID"]" />
    <p>
       <input type="submit" value="@T("确认")" />
    </p>
</form>